package com.eningqu.aipen.logic.model.chat;

import com.alibaba.fastjson.annotation.JSONField;
import com.google.gson.annotations.SerializedName;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Package:com.eningqu.aipen.logic.model
 * Author:starr
 * Time:2023/10/4  16:56
 * Description: 对话主体的内容
 */
@NoArgsConstructor
@Data
public class ChatBodyBean {

    @SerializedName("messages")
    public List<MessagesDTO> messages;

    @Data
    public static class MessagesDTO {
        @SerializedName("role")
        @JSONField(ordinal = 1)
        public String role;
        @SerializedName("content")
        @JSONField(ordinal = 2)
        public String content;

        public MessagesDTO(String role,String content){

            this.role=role;
            this.content=content;
        }

    }
}
